<div data-role="content" data-scroll="y" height="80%">
<div data-iscroll="scroller">
<?php echo validation_errors('<p class="error">'); ?>

<?php if(isset($valid_time) and !$valid_time):?>
    <p> Not valid time format!!</p>
<?php endif; ?>
<?php if(isset($valid_date) and !$valid_date):?>
    <p> Not valid Date format!!</p>
<?php endif; ?>

<?php
echo form_open('hello_controller/create_hello');?>
<label for="title">Hello Title:</label>
<input type=text name="title">


<label for="area"></label>
<p>Area: <?= $areaname ?></p>

<input type="hidden" name="areaname" value=<?=$areaname?> >
<input type="hidden" name="areaid" value=<?=$areaid?> >

<label for="location">Location:</label>
<input type=text name="location">

<label for="mydate">Date:</label>
<input name="date" id="mydate" type="date" data-role="datebox"data-options='{"mode": "flipbox"}'>

<label for="time">Time:</label>
<input name="time" id="time" type="date" data-role="datebox" data-options='{"mode": "timeflipbox"}'>
<br>
<label for="Quota">Quota:</label>
<select name="quote">

  <option value=1>1</option>
  <option value=2>2</option>
  <option value=3>3</option>
  <option value=4>4</option>
<option value=5>5</option>	
<option value=6>6</option>
<option value=7>7</option>
<option value=8>8</option>
</select>

<input type=submit value="Create Hello!">

<?php echo form_close();
?>
</div>
</div>
